<div class="pageFormContent" layoutH>
    <h2 class="contentTitle"><@t.page 'recommended_to'/></h2>
    <dl class="nowrap">
<@cms.contentRelatedList relatedContentId=contentId>
        <dt>
            <label><@t.page 'content'/>:</label>
        </dt>
        <dd>
            <a class="button" href="cmsContent/push_content.html?contentId=${contentId}" target="dialog" mask="true"><@t.page 'button.push'/></a>
            <label><@t.page 'total_count' page.totalCount/></label>
        <#list page.list as a>
            <@t.merge 'contentIds' a.contentId!/>
        </#list>
        <@cms.content ids=t.contentIds!><#assign contentMap=map!/></@cms.content>
        <#list page.list as a>
              <p><#if a.relationType?has_content><@cms.dictionary id=a.relationType><label>${object.name}:</label></@cms.dictionary><#if a.relation?has_content><@cms.dictionaryData dictionaryId=a.relationType value=a.relation><label>${object.text}:</label></@cms.dictionaryData></#if></#if><a href="${a.url}" class="exclude-translate" target="_blank">${(contentMap[a.contentId?string].title)!}</a> <a href="cmsContent/unrelated?id=${a.id}&_csrf=<@tools.csrfToken admin=true/>" title="<@t.page 'confirm.delete'/>" target="ajaxTodo" callback="$.pdialog.closeCurrent()"><@t.page 'button.delete'/></a></p>
        </#list>
        </dd>
</@cms.contentRelatedList>
    </dl>
    <div class="divider"></div>
    <dl class="nowrap">
<@cms.placeList itemType='content' itemId=contentId>
        <dt>
            <label><@t.page 'place_data'/>:</label>
        </dt>
        <dd>
            <a class="button" href="cmsPlace/push.html?itemType=content&itemId=${contentId}" target="dialog" mask="true"><@t.page 'button.push'/></a>
            <label><@t.page 'total_count' page.totalCount/></label>
        <#list page.list as a>
            <p>${a.path[0..a.path?last_index_of('/')]}<@tools.placeMetadata path=a.path>${(object.alias)!}</@tools.placeMetadata> (${a.clicks}) <a href="cmsPlace/delete?ids=${a.id}&_csrf=<@tools.csrfToken admin=true/>&path=${(a.path?url)!}" title="<@t.page 'confirm.delete'/>" target="ajaxTodo" callback="$.pdialog.closeCurrent()"><@t.page 'button.delete'/></a></p>
        </#list>
        </dd>
</@cms.placeList>
    </dl>
    <div class="divider"></div>
</div>
<div class="formBar">
    <ul>
        <li><button type="button" class="button close"><@t.page 'button.close'/></button></li>
    </ul>
</div>